package org.csmz.xg2333;

import java.util.ArrayList;
import java.util.Iterator;

public class Example04 {
    public static void main(String[] args){
        ArrayList list = new ArrayList();
        list.add("Java");
        list.add("python");
        list.add("c++");
        Iterator iterator = list.iterator();
        while (iterator.hasNext()){
            Object obj = iterator.next();
            if (obj.equals("Java")){
                list.remove(obj);
            }
        }
        System.out.println(list);
    }
}
